package com.link.base.base.customeraccount.service;

import com.link.base.base.customeraccount.dao.mybatis.mapper.CustomerAccountMapper;
import com.link.base.base.customeraccount.model.CustomerAccount;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/9 15:42
 * @version 1.0
 */

@Service
public class CustomerAccountServiceImpl extends BasicServiceImpl<CustomerAccount> implements CustomerAccountService {

    @Resource
    private CustomerAccountMapper customerAccountMapper;

    @Override
    public BasicMapper<CustomerAccount> getBasicMapper() {
        return customerAccountMapper;
    }

    /**
     * 过滤出客户参数不在账号设置中的数据
     *
     * @param map
     * @return
     */
    @Override
    public List<CustomerAccount> filterCustAccountByMap(Map<String, String> map) throws Exception {
        return customerAccountMapper.filterCustAccountByMap(map);
    }
}
